package com.superpai.domain;

import java.util.List;

import com.superpai.utils.StringUtils;

/**
 * @author Devin.Hu
 * @date 2011-8-22
 * @version V1.0
 * @description 商品信息model
 */
public class Item {
	
	/** string 商品编码 **/
	private String itemCode;	
	/** string 商品名称1-60字节 **/
	private String itemName;	
	/** string 合作商家的私有商品编码，由商家保证该编码在其所有商品中的唯一性，不超过40 Bytes。 **/
	private String itemLocalCode;	
	/** string 商品状态
	“IS_FOR_SALE”：上架销售。
	“IS_IN_STORE”：放入仓库。
	“IS_SALE_ON_TIME”：定时上架 **/
	private String itemState;	
	/** number 商品状态码 **/
	private String stateCode;	
	/** string 商品状态描述 **/
	private String stateDesc;	
	/** number 商品属性 **/
	private String itemProperty;	
	/** string 商品属性串(拍拍助理)
	格式为：key1_value1|key2_value2|key3_value3|.... 例如：2_1|25_1|34_1|..... **/
	private String properties;	
	/** string  **/
	private String relatedItems;	
	/** string 商品所属的店铺分类id **/
	private String categoryId;	
	/** number 商品所属的拍拍类目id。每个商品只能从属于一个拍拍类目id，且必须从属于一个类目id。 **/
	private String classId;	
	/** string 商品Id **/
	private String productId;
	/** string 商品属性信息 **/
	private String attr;	
	/** string 自定义属性字符串 **/
	private String customAttr;	
	/** string 出售类型 **/
	private String sellType;	
	/** string 支付类型 **/
	private String payType;	
	/** string 商品的市场参考价格，只对QQ会员特权卖家有效。 **/
	private String marketPrice;	
	/** number 商品价格 **/
	private String itemPrice;	
	/** number 是否QQ会员商品1是0否。请求参数extendInfo=1时有效 **/
	private String qqvipItem;	
	/** number 商品折扣。请求参数extendInfo=1时有效 **/
	private String qqvipDiscount;	
	/** number 商品库存数量 **/
	private String stockCount;	
	/** string 商家昵称 **/
	private String sellerName;	
	/** number 买家或卖家承担运费 
	0x01=卖家承担运费
	0x02=买家承担运费
	0x03=同城交易无需运费
	0x0a=支持运费模板的边界值（大于或等于这个值时，表示支持运费模板） **/
	private String sellerPayFreight;	
	/** number 运费模版Id **/
	private String freightId;	
	/** number  **/
	private String codId;	
	/** number 商品重量 **/
	private String weight;	
	/** String 平邮价格 **/
	private String mailPrice;	
	/** String 快递价格 **/
	private String expressPrice;
	/** String ems价格 **/
	private String emsPrice;
	/** String 商品所在城市 **/
	private String cityId;	
	/** String 所在省 **/
	private String provinceId;	
	/** String 国家 **/
	private String countryId;	
	/** String quick **/
	private String quick;
	/** String quick **/
	private String freeReturn;
	/** String **/
	private String secondHandItem;
	/** number 是否推荐商品 
	0：表示非推荐商品
	1：表示推荐商品 **/
	private String recommendItem;	
	/** number 是否橱窗商品
	0：表示非橱窗展示商品
	1：表示是橱窗展示商品 **/
	private String windowItem;	
	/** number 是否提供发票
	0：表示商品不开具发票
	1：表示商品可开具发票 **/
	private String invoiceItem; 
	/** number 是否假一赔三诚信保证商品
	0：表示非假一赔三商品
	1：表示是假一赔三商品 **/
	private String guaranteeCompensation;	
	/** number 是否7天包退诚信保证商品
	0：表示非7天包退诚信保证商品
	1：表示是7天包退诚信保证商品 **/
	private String guarantee7Days;	
	/** number 是否14天先行赔付诚信保证商品
	0：表示非14天先行赔付诚信保证商品
	1：表示是14天先行赔付诚信保证商品 **/
	private String guarantee14Days;	
	/** number 是否保修商品
	0：表示非保修商品
	1：表示保修商品 **/
	private String guaranteeRepair;	
	/** number 是否支持财付通
	0：表示不支持
	1：表示支持 **/
	private String supportTenpay;	
	/** number 购买限制，0，表示不限制。大于0的值表示单个买家购买该商品不得超过该数目。 **/
	private String buyLimit;	
	/** number 上架时长，单位为秒 **/
	private String validDuration;	
	/** string 商品详情页面颜色主题
	“THEME_DEFAULT”：默认风格（默认值）。
	“THEME_PURPLE”：紫色浪漫。暂不支持
	“THEME_BLUE”：蓝色幻想。暂不支持
	“THEME_PINK”：粉色回忆。
	“THEME_NATURE”：自然印象。
	“THEME_METAL”：金属狂潮。 **/
	private String theme;	
	/** number 修改次数 **/
	private String reloadCount;	
	/** number 商品被访问次数 **/
	private String visitCount;	
	/** string 尺码表id extendInfo=1 时有效 **/
	private String sizeTableId;	
	/** string 商品图片 **/
	private String picLink;
	/** date 发布时间 yyyy-MM-dd HH:mm:ss **/
	private String createTime;	
	/** date 最近修改时间 yyyy-MM-dd HH:mm:ss **/
	private String lastModifyTime;	
	/** date 最近上架时间 yyyy-MM-dd HH:mm:ss **/
	private String lastToSaleTime;	
	/** date 最近下架时间 yyyy-MM-dd HH:mm:ss **/
	private String lastToStoreTime;
	/** 商品库存 **/
	private List<Stock> stockList;
	
	
	public String getItemCode() {
		return itemCode;
	}
	public void setItemCode(String itemCode) {
		this.itemCode = itemCode;
	}
	public String getItemName() {
		return itemName;
	}
	public void setItemName(String itemName) {
		this.itemName = itemName;
	}
	public String getItemLocalCode() {
		return itemLocalCode;
	}
	public void setItemLocalCode(String itemLocalCode) {
		this.itemLocalCode = itemLocalCode;
	}
	public String getItemState() {
		return itemState;
	}
	public void setItemState(String itemState) {
		this.itemState = itemState;
	}
	public String getStateCode() {
		return stateCode;
	}
	public void setStateCode(String stateCode) {
		this.stateCode = stateCode;
	}
	public String getStateDesc() {
		return stateDesc;
	}
	public void setStateDesc(String stateDesc) {
		this.stateDesc = stateDesc;
	}
	public String getItemProperty() {
		return itemProperty;
	}
	public void setItemProperty(String itemProperty) {
		this.itemProperty = itemProperty;
	}
	public String getProperties() {
		return properties;
	}
	public void setProperties(String properties) {
		this.properties = properties;
	}
	public String getRelatedItems() {
		return relatedItems;
	}
	public void setRelatedItems(String relatedItems) {
		this.relatedItems = relatedItems;
	}
	public String getCategoryId() {
		return categoryId;
	}
	public void setCategoryId(String categoryId) {
		this.categoryId = categoryId;
	}
	public String getClassId() {
		return classId;
	}
	public void setClassId(String classId) {
		this.classId = classId;
	}
	public String getProductId() {
		return productId;
	}
	public void setProductId(String productId) {
		this.productId = productId;
	}
	public String getAttr() {
		return attr;
	}
	public void setAttr(String attr) {
		this.attr = attr;
	}
	public String getCustomAttr() {
		return customAttr;
	}
	public void setCustomAttr(String customAttr) {
		this.customAttr = customAttr;
	}
	public String getSellType() {
		return sellType;
	}
	public void setSellType(String sellType) {
		this.sellType = sellType;
	}
	public String getPayType() {
		return payType;
	}
	public void setPayType(String payType) {
		this.payType = payType;
	}
	public String getMarketPrice() {
		return StringUtils.getPrice(marketPrice);
	}
	public void setMarketPrice(String marketPrice) {
		this.marketPrice = marketPrice;
	}
	public String getItemPrice() {
		return StringUtils.getPrice(itemPrice);
	}
	public void setItemPrice(String itemPrice) {
		this.itemPrice = itemPrice;
	}
	public String getQqvipItem() {
		return qqvipItem;
	}
	public void setQqvipItem(String qqvipItem) {
		this.qqvipItem = qqvipItem;
	}
	public String getQqvipDiscount() {
		return qqvipDiscount;
	}
	public void setQqvipDiscount(String qqvipDiscount) {
		this.qqvipDiscount = qqvipDiscount;
	}
	public String getStockCount() {
		return stockCount;
	}
	public void setStockCount(String stockCount) {
		this.stockCount = stockCount;
	}
	public String getSellerName() {
		return sellerName;
	}
	public void setSellerName(String sellerName) {
		this.sellerName = sellerName;
	}
	public String getSellerPayFreight() {
		return sellerPayFreight;
	}
	public void setSellerPayFreight(String sellerPayFreight) {
		this.sellerPayFreight = sellerPayFreight;
	}
	public String getFreightId() {
		return freightId;
	}
	public void setFreightId(String freightId) {
		this.freightId = freightId;
	}
	public String getCodId() {
		return codId;
	}
	public void setCodId(String codId) {
		this.codId = codId;
	}
	public String getWeight() {
		return weight;
	}
	public void setWeight(String weight) {
		this.weight = weight;
	}
	public String getMailPrice() {
		return mailPrice;
	}
	public void setMailPrice(String mailPrice) {
		this.mailPrice = mailPrice;
	}
	public String getExpressPrice() {
		return expressPrice;
	}
	public void setExpressPrice(String expressPrice) {
		this.expressPrice = expressPrice;
	}
	public String getEmsPrice() {
		return emsPrice;
	}
	public void setEmsPrice(String emsPrice) {
		this.emsPrice = emsPrice;
	}
	public String getCityId() {
		return cityId;
	}
	public void setCityId(String cityId) {
		this.cityId = cityId;
	}
	public String getProvinceId() {
		return provinceId;
	}
	public void setProvinceId(String provinceId) {
		this.provinceId = provinceId;
	}
	public String getCountryId() {
		return countryId;
	}
	public void setCountryId(String countryId) {
		this.countryId = countryId;
	}
	public String getQuick() {
		return quick;
	}
	public void setQuick(String quick) {
		this.quick = quick;
	}
	public String getFreeReturn() {
		return freeReturn;
	}
	public void setFreeReturn(String freeReturn) {
		this.freeReturn = freeReturn;
	}
	public String getSecondHandItem() {
		return secondHandItem;
	}
	public void setSecondHandItem(String secondHandItem) {
		this.secondHandItem = secondHandItem;
	}
	public String getRecommendItem() {
		return recommendItem;
	}
	public void setRecommendItem(String recommendItem) {
		this.recommendItem = recommendItem;
	}
	public String getWindowItem() {
		return windowItem;
	}
	public void setWindowItem(String windowItem) {
		this.windowItem = windowItem;
	}
	public String getInvoiceItem() {
		return invoiceItem;
	}
	public void setInvoiceItem(String invoiceItem) {
		this.invoiceItem = invoiceItem;
	}
	public String getGuaranteeCompensation() {
		return guaranteeCompensation;
	}
	public void setGuaranteeCompensation(String guaranteeCompensation) {
		this.guaranteeCompensation = guaranteeCompensation;
	}
	public String getGuarantee7Days() {
		return guarantee7Days;
	}
	public void setGuarantee7Days(String guarantee7Days) {
		this.guarantee7Days = guarantee7Days;
	}
	public String getGuarantee14Days() {
		return guarantee14Days;
	}
	public void setGuarantee14Days(String guarantee14Days) {
		this.guarantee14Days = guarantee14Days;
	}
	public String getGuaranteeRepair() {
		return guaranteeRepair;
	}
	public void setGuaranteeRepair(String guaranteeRepair) {
		this.guaranteeRepair = guaranteeRepair;
	}
	public String getSupportTenpay() {
		return supportTenpay;
	}
	public void setSupportTenpay(String supportTenpay) {
		this.supportTenpay = supportTenpay;
	}
	public String getBuyLimit() {
		return buyLimit;
	}
	public void setBuyLimit(String buyLimit) {
		this.buyLimit = buyLimit;
	}
	public String getValidDuration() {
		return validDuration;
	}
	public void setValidDuration(String validDuration) {
		this.validDuration = validDuration;
	}
	public String getTheme() {
		return theme;
	}
	public void setTheme(String theme) {
		this.theme = theme;
	}
	public String getReloadCount() {
		return reloadCount;
	}
	public void setReloadCount(String reloadCount) {
		this.reloadCount = reloadCount;
	}
	public String getVisitCount() {
		return visitCount;
	}
	public void setVisitCount(String visitCount) {
		this.visitCount = visitCount;
	}
	public String getSizeTableId() {
		return sizeTableId;
	}
	public void setSizeTableId(String sizeTableId) {
		this.sizeTableId = sizeTableId;
	}
	public String getPicLink() {
		return picLink;
	}
	public void setPicLink(String picLink) {
		this.picLink = picLink;
	}
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public String getLastModifyTime() {
		return lastModifyTime;
	}
	public void setLastModifyTime(String lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}
	public String getLastToSaleTime() {
		return lastToSaleTime;
	}
	public void setLastToSaleTime(String lastToSaleTime) {
		this.lastToSaleTime = lastToSaleTime;
	}
	public String getLastToStoreTime() {
		return lastToStoreTime;
	}
	public void setLastToStoreTime(String lastToStoreTime) {
		this.lastToStoreTime = lastToStoreTime;
	}
	public List<Stock> getStockList() {
		return stockList;
	}
	public void setStockList(List<Stock> stockList) {
		this.stockList = stockList;
	}
}
